<template>
  <div>
    <table class="table1 owntable mb20 tableLayout" border="0" cellspacing="0" cellpadding="1" style="width: 100%;">
      <tr>
        <td width="150">文件作废管理编号</td>
        <td>{{ item.number }}</td>
        <td width="150">编制部门</td>
        <td>{{ item.createDeptName }}</td>
      </tr>
    </table>

    <div class="f14 mb20">作废文件如下：</div>
    <table class="table1 owntable tableLayout mb20" border="0" cellspacing="0" cellpadding="1" style="width: 100%;" v-for="(v, k) in item.voidList" :key="index">
      <tr>
        <td width="150">环境管理编号</td>
        <td>{{ item.number }}</td>
        <td width="150">环境类别</td>
        <td>{{ environmentList[item.environmentType] }}</td>
      </tr>
      <tr>
        <td>生产批号</td>
        <td>{{ item.batchNumber }}</td>
        <td>产品名称</td>
        <td>{{ item.productName }}</td>
      </tr>
      <tr>
        <td>规格型号</td>
        <td>{{ item.productSku }}</td>
        <td>产品代码</td>
        <td>{{ item.productCode }}</td>
      </tr>
      <tr>
        <td>工艺用水</td>
        <td>{{ item.waterType == 0 ? '普通' : '净化' }}</td>
        <td>工艺用气</td>
        <td>{{ item.gasType == 0 ? '普通' : '净化' }}</td>
      </tr>
      <!--          <tr>
                  <td>微生物灭活</td>
                  <td>{{ item.productSku }}</td>
                  <td>植入/非植入</td>
                  <td>{{ item.productCode }}</td>
                </tr> -->

      <tr>
        <td>管理部门</td>
        <td>{{ item.manageDeptName }}</td>
        <td>负责人</td>
        <td>{{ item.manageUserName }}</td>
      </tr>
      <tr>
        <td>编制部门</td>
        <td colspan="3">{{ item.createDeptName }}</td>
      </tr>
    </table>

    <table class="table1 owntable mb20 tableLayout" border="0" cellspacing="0" cellpadding="1" style="width: 100%;" v-if="item.deviceList.length != 0">
      <tr>
        <td class="gray_bg">设备名称</td>
        <td class="gray_bg">设备型号</td>
        <td class="gray_bg">设备编号</td>
      </tr>
      <tr v-for="(v, i) in item.deviceList" :key="i">
        <td class="white_bg">{{ v.deviceModel }}</td>
        <td>{{ v.deviceNumber }}</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  props: {
    item: {}
  }
};
</script>

<style></style>
